home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / Mark Pilgrim / Go Sit In The Corner 1.0 / source / init code / structs.h < prev   
Encoding:
C/C++ Source or Header  |  1994-10-30  |  2.1 KB  |  90 lines  |  [TEXT/KAHL]

  1. /**********************************************************************\
  2.  
  3. File:        structs.h
  4.  
  5. Purpose:    This is the header file for INIT globals and structs.
  6.  
  7.  
  8. Go Sit In The Corner -=- not you, just the cursor
  9. Copyright ©1994, Mark Pilgrim
  10.  
  11. This program is free software; you can redistribute it and/or modify
  12. it under the terms of the GNU General Public License as published by
  13. the Free Software Foundation; either version 2 of the License, or
  14. (at your option) any later version.
  15.  
  16. This program is distributed in the hope that it will be useful,
  17. but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  19. GNU General Public License for more details.
  20.  
  21. You should have received a copy of the GNU General Public License
  22. along with this program in a file named "GNU General Public License".
  23. If not, write to the Free Software Foundation, 675 Mass Ave,
  24. Cambridge, MA 02139, USA.
  25.  
  26. \**********************************************************************/
  27.  
  28. #pragma once
  29.  
  30. struct QDGlobals
  31. {
  32.     char privates[76];
  33.     long randSeed;
  34.     BitMap screenBits;
  35.     Cursor arrow;
  36.     Pattern dkGray;
  37.     Pattern ltGray;
  38.     Pattern gray;
  39.     Pattern black;
  40.     Pattern white;
  41.     GrafPtr thePort;
  42.     long    end;
  43. };
  44.  
  45. typedef struct QDGlobals QDGlobals;
  46.  
  47. typedef struct PrefStruct
  48. {
  49.     unsigned long    numTicks;                /* number of ticks 'til cornering */
  50.     unsigned char    whichCorner;            /* 0=TL, 1=TR, 2=BR, 3=BL */
  51.     unsigned char    always;                    /* always go to corner? */
  52.     unsigned char    showIcon;                /* Show icon on startup? */
  53.     unsigned char    isOn;                    /* Is on? */
  54.     unsigned long    ourCodePtr;                /* pointer to VBL code in memory */
  55.     unsigned long    ourVBLPtr;                /* pointer to VBL structure in memory */
  56. } PrefStruct, *PrefPtr, **PrefHandle;
  57.  
  58. enum
  59. {
  60.     kModuleIcon=1,
  61.     kModuleName,
  62.     kModuleCopyright,
  63.     kModuleInfo,
  64.     kButtonLeft,
  65.     kButtonRight,
  66.     kButtonOn,
  67.     kTitleOn,
  68.     kButtonOff,
  69.     kTitleOff,
  70.     kButtonShowIcon,
  71.     kTitleShowIcon
  72. };
  73.  
  74. enum
  75. {
  76.     allsWell=0,
  77.     prefs_allsWell=0,
  78.     prefs_diskReadErr,
  79.     prefs_diskWriteErr,
  80.     prefs_cantOpenPrefsErr,
  81.     prefs_cantCreatePrefsErr,
  82.     prefs_virginErr,
  83.     kNoMemory,
  84.     kCantGetResource,
  85.     kCantFindSystemFolder,
  86.     kCantOpenModuleFolder,
  87.     kNoModules,
  88.     kCantOpenModule
  89. };
  90.